From 459397f8e71cb07cadcd26880f34b3ef8d0f7b1a Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Fri, 15 Jan 2021 02:40:41 +0100 Subject: [PATCH] Move tests and create a command to run all tests --- .idea/runConfigurations/All_Tests.xml | 30 +++++++++++++++++++ .idea/runConfigurations/Article_Tests.xml | 2 +- .idea/runConfigurations/Auth_Tests.xml | 2 +- .idea/runConfigurations/Citizen_Tests.xml | 2 +- .idea/runConfigurations/Comment_Tests.xml | 2 +- .../runConfigurations/Constitution_Tests.xml | 2 +- .idea/runConfigurations/Cucumber_Tests.xml | 4 +-- .../Cucumber_Tests__offline_.xml | 2 +- .../Cucumber_with_tag__now.xml | 24 +++++++++++++++ .idea/runConfigurations/Follow_Tests.xml | 2 +- .idea/runConfigurations/Functional_Tests.xml | 23 ++++++++++++++ .idea/runConfigurations/Mark_as__error.xml | 2 +- .idea/runConfigurations/Opinion_Tests.xml | 2 +- .idea/runConfigurations/Unit_Tests.xml | 3 +- .idea/runConfigurations/Vote_Tests.xml | 2 +- .idea/runConfigurations/Workgroup_test.xml | 2 +- build.gradle.kts | 1 + .../{RunCucumberTest.kt => CucumberTest.kt} | 10 ++----- .../kotlin/{ => functional}/MailerTest.kt | 10 ++++--- .../{utils => functional}/ResourcesKtTest.kt | 3 +- src/test/kotlin/{ => functional}/ViewTest.kt | 4 +++ .../kotlin/{feature => steps}/ArticleSteps.kt | 2 +- .../kotlin/{feature => steps}/CitizenSteps.kt | 2 +- .../{feature => steps}/ConstitutionSteps.kt | 2 +- .../kotlin/{feature => steps}/FollowSteps.kt | 2 +- .../{feature => steps}/KtorServerAuthSteps.kt | 2 +- .../{feature => steps}/KtorServerContext.kt | 9 ++---- .../KtorServerRequestSteps.kt | 2 +- .../{feature => steps}/KtorServerRestSteps.kt | 2 +- .../kotlin/{feature => steps}/OpinionSteps.kt | 2 +- .../kotlin/{feature => steps}/VoteSteps.kt | 2 +- .../{feature => steps}/WorkgroupSteps.kt | 2 +- .../voter/ArticleVoterTest.kt | 7 +++-- .../voter/CitizenVoterTest.kt | 9 +++--- .../voter/CommentVoterTest.kt | 7 +++-- .../voter/FollowVoterTest.kt | 8 +++-- .../voter/OpinionChoiceVoterTest.kt | 8 +++-- .../voter/OpinionVoterTest.kt | 8 +++-- .../{security => unit}/voter/VoteVoterTest.kt | 8 +++-- .../voter/WorkgroupVoterTest.kt | 8 +++-- 40 files changed, 160 insertions(+), 66 deletions(-) create mode 100644 .idea/runConfigurations/All_Tests.xml create mode 100644 .idea/runConfigurations/Cucumber_with_tag__now.xml create mode 100644 .idea/runConfigurations/Functional_Tests.xml rename src/test/kotlin/{RunCucumberTest.kt => CucumberTest.kt} (90%) rename src/test/kotlin/{ => functional}/MailerTest.kt (87%) rename src/test/kotlin/{utils => functional}/ResourcesKtTest.kt (89%) rename src/test/kotlin/{ => functional}/ViewTest.kt (96%) rename src/test/kotlin/{feature => steps}/ArticleSteps.kt (99%) rename src/test/kotlin/{feature => steps}/CitizenSteps.kt (99%) rename src/test/kotlin/{feature => steps}/ConstitutionSteps.kt (99%) rename src/test/kotlin/{feature => steps}/FollowSteps.kt (98%) rename src/test/kotlin/{feature => steps}/KtorServerAuthSteps.kt (98%) rename src/test/kotlin/{feature => steps}/KtorServerContext.kt (83%) rename src/test/kotlin/{feature => steps}/KtorServerRequestSteps.kt (99%) rename src/test/kotlin/{feature => steps}/KtorServerRestSteps.kt (99%) rename src/test/kotlin/{feature => steps}/OpinionSteps.kt (99%) rename src/test/kotlin/{feature => steps}/VoteSteps.kt (98%) rename src/test/kotlin/{feature => steps}/WorkgroupSteps.kt (99%) rename src/test/kotlin/{security => unit}/voter/ArticleVoterTest.kt (96%) rename src/test/kotlin/{security => unit}/voter/CitizenVoterTest.kt (93%) rename src/test/kotlin/{security => unit}/voter/CommentVoterTest.kt (96%) rename src/test/kotlin/{security => unit}/voter/FollowVoterTest.kt (96%) rename src/test/kotlin/{security => unit}/voter/OpinionChoiceVoterTest.kt (93%) rename src/test/kotlin/{security => unit}/voter/OpinionVoterTest.kt (96%) rename src/test/kotlin/{security => unit}/voter/VoteVoterTest.kt (97%) rename src/test/kotlin/{security => unit}/voter/WorkgroupVoterTest.kt (97%) diff --git a/.idea/runConfigurations/All_Tests.xml b/.idea/runConfigurations/All_Tests.xml new file mode 100644 index 0000000..49576fe --- /dev/null +++ b/.idea/runConfigurations/All_Tests.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Article_Tests.xml b/.idea/runConfigurations/Article_Tests.xml index c3bf9d4..a5e337b 100644 --- a/.idea/runConfigurations/Article_Tests.xml +++ b/.idea/runConfigurations/Article_Tests.xml @@ -4,7 +4,7 @@