Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable test package build

See original GitHub issue

Description of Problem, Request, or Question

I just tried to disable the test packages build in a GitLab-CI pipeline by setting CPT_TEST_FOLDER to “False”. Unfortunately it is recognized as string instead of boolean, so CPT is searching for the “False” test package directory. I also tried by setting the test_folder parameter to the actual boolean False, but then CPT tries to get the value from CPT_TEST_FOLDER (and if not there, sets test_folder to None).

Is there a valid way to disable the test package build with conan package tools?

Environment Details

  • Conan Package Tools Version: 0.34.0
  • Conan version: conan 1.27.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

uilianriescommented, Jul 30, 2020

@Linux13524 The PR #518 contains the fix for your problem and will be available on CPT 0.34.1.

I’m closing this issue now, but feel free to re-open if you find any related problem with 0.34.1.


Linux13524commented, Jul 30, 2020

Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven package/install without test (skip tests) - Stack Overflow
Enter this value: package -Dmaven.test.skip=true -f pom.xml in the Command line field. Click Apply and a Run Configurations dropdown menu should appear along ......
Read more >
Skipping Tests with Maven - Baeldung
Learn how and when to skip tests with Maven. ... we'll use the package phase, which includes compiling and running the tests.
Read more >
Maven Surefire Plugin – Skipping Tests
To skip running the tests for a particular project, set the skipTests property to true. ... You can also skip the tests via...
Read more >
Testing in Chromium - On disabling tests
If the test is an entire binary or test suite, the first (and simplest) way is to simply not build (or build, but...
Read more >
Maven - How to skip unit test -
In Maven, you can define a system property -Dmaven.test.skip=true to skip the entire unit test. By default, when building project, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found