microsoft / microsoft/SPTAG

cmake: run the tests by default

Open
#209 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
5k
Forks
622
Avg merge
8h 37m
Merged PRs (30d)
5

Description

The tests are not run by default from make test or make check. In theory adding these two lines to Test/CMakeLists.txt should do this, but I have not been able to get it to work.

enable_testing()
add_test(test test)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Test/CMakeLists.txt and inspect how the make test and make check targets are wired. Check the existing test target and the issue's proposed CMake testing configuration, then run both commands. Done means the test suite runs automatically from make test and make check.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.