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

Ensure daml test is always invoked from project root #43

Merged
merged 5 commits into from
May 21, 2024

Conversation

luigy
Copy link
Contributor

@luigy luigy commented Apr 29, 2024

No description provided.

@@ -285,7 +285,9 @@ runTestSuite opts = do
case shouldRunTests of
True -> do
writeDamlScript testFile result
(ec, damlTestStdout, damlTestStderr) <- liftIO $ readProcessWithExitCode damlPath ["test", "--files", testFile] ""
let damlProc = proc damlPath ["test", "--files", testFile]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be better to use the DAML_PROJECT environment variable

Copy link
Contributor Author

@luigy luigy Apr 29, 2024

Choose a reason for hiding this comment

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

I did some manual tests as well and it is looking good, thanks!

I built daml-cucumber and from a nix-shell in hs I tested different combinations to make sure it works

../result/bin/daml-cucumber --source $(pwd) --features $(pwd)/features.feature
../result/bin/daml-cucumber --source . --features ./features.feature
./result/bin/daml-cucumber --source test --features test/features.feature

@Ericson2314
Copy link
Member

Reran a job, weird it was trying to force LLVM for base-compat.

@ali-abrar ali-abrar merged commit 74454b2 into main May 21, 2024
0 of 5 checks passed
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.

None yet

4 participants