Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoke Spec #1205

Merged
merged 6 commits into from
Oct 18, 2022
Merged

Smoke Spec #1205

merged 6 commits into from
Oct 18, 2022

Conversation

Dark-Knight11
Copy link
Contributor

@Dark-Knight11 Dark-Knight11 commented Oct 14, 2022

Migrated smoke test from Spek to Kotest

Closes: #1202


I confirm that I have read the Contributor Agreements v1.0, agree to be bound on them and confirm that my contribution is compliant.

Copy link
Owner

@robstoll robstoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dark-Knight11 Thanks for the WIP was able to figure out the problem by debugging (in case you want to try it out as well. Set a break-point in io.kotest.framework.discovery.Discovery#doDiscovery)

dependabot bot and others added 3 commits October 18, 2022 14:40
Bumps [scala-library](https://github.com/scala/scala) from 2.13.2 to 2.13.10.
- [Release notes](https://github.com/scala/scala/releases)
- [Commits](scala/scala@v2.13.2...v2.13.10)

---
updated-dependencies:
- dependency-name: org.scala-lang:scala-library
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps `junit.version` from 5.9.0 to 5.9.1.

Updates `junit-jupiter` from 5.9.0 to 5.9.1
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](junit-team/junit5@r5.9.0...r5.9.1)

Updates `junit-jupiter-engine` from 5.9.0 to 5.9.1
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](junit-team/junit5@r5.9.0...r5.9.1)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Migrated the SmokeSpec file from Spek to Kotest using Descibe Spec.
Used Kotest version 4.2.3. In the latest Kotest Versions,
min kotlin version is limited to 1.6 but atrium uses kotlin 1.3.2.
Kotest 4.3.2 is the last version which is compatible with kotlin 1.3.x
Will have to bump these version once Kotlin version is updated here.

Resolves: robstoll#1202
Copy link
Owner

@robstoll robstoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dark-Knight11 just a tiny correction and we are good to merge

@@ -16,11 +18,16 @@ kotlin {
api(prefixedProject("translations-en_GB"))
}
}
val commonTest by getting {
dependencies {
implementation("io.kotest:kotest-runner-junit5:$kotestVersion") // for kotest framework
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not think about this beforehand. Use implementationWithExclude this way we don't accidentally use the Kotlin version of kotest

Copy link
Contributor Author

@Dark-Knight11 Dark-Knight11 Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way

implementation("io.kotest:kotest-runner-junit5:$kotestVersion") {
    exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk8")
}

or this way?

implementationWithExclude("io.kotest:kotest-runner-junit5:$kotestVersion") 

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please the second

bundles/fluent-en_GB/atrium-fluent-en_GB/build.gradle.kts Outdated Show resolved Hide resolved
This way we don't accidentally use the Kotlin version of kotest

Related: 1202
@robstoll robstoll merged commit 1963a83 into robstoll:main Oct 18, 2022
@robstoll
Copy link
Owner

@Dark-Knight11 thanks for your first contribution to Atrium 🎉
Looking forward to the next ones 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

migrate fluent-en_GB SmokeTest from spek to kotest
2 participants