GithubHelp home page GithubHelp logo

Comments (6)

wdduncan avatar wdduncan commented on June 16, 2024 1

See this stackoverflow article for pointers:

https://stackoverflow.com/questions/2188376/how-to-have-gnu-make-explicitly-test-for-failure

from nmdc-schema.

wdduncan avatar wdduncan commented on June 16, 2024 1

Yes. That was going to be my approach.

from nmdc-schema.

turbomam avatar turbomam commented on June 16, 2024

in addition to prefixing the negative tests with "invalid_", can we also put them in an invalid subdirectory?

from nmdc-schema.

wdduncan avatar wdduncan commented on June 16, 2024

in addition to prefixing the negative tests with "invalid_", can we also put them in an invalid subdirectory?

I'd prefer not.

from nmdc-schema.

turbomam avatar turbomam commented on June 16, 2024

Are you thinking of breaking up

nmdc-schema/Makefile

Lines 152 to 166 in 0549185

# datasets used test/validate the schema
SHEMA_TEST_EXAMPLES := \
biosample_test \
gold_project_test \
img_mg_annotation_objects \
nmdc_example_database \
MAGs_activity \
mg_assembly_activities_test \
mg_assembly_data_objects_test \
nmdc_example_database \
study_test
# invalid_study_test # this is used to make sure invalid data is caught!
.PHONY: test-jsonschema
test-jsonschema: $(foreach example, $(SHEMA_TEST_EXAMPLES), validate-$(example))

into something like this

# datasets used test/validate the schema
SHEMA_TEST_EXAMPLES := \
	biosample_test \
	gold_project_test \
	img_mg_annotation_objects ...

INVALID_SHEMA_TEST_EXAMPLES := \
        invalid_study_test \
        invalid_funct_ano_ids_test ...

.PHONY: test-jsonschema ...

.PHONY: invalid_test-jsonschema ...

And using the same general recipe for test-jsonschema and invalid_test-jsonschema, but applying the ! or - negation to invalid_test-jsonschema?

from nmdc-schema.

wdduncan avatar wdduncan commented on June 16, 2024

@turbomam I think @sujaypatil96 fixed this :)

Closing ticket. Reopen if needed.

from nmdc-schema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.