Giter Club home page Giter Club logo

Comments (4)

BudgieInWA avatar BudgieInWA commented on June 5, 2024 1

@dabreegster, with the addition of some docs explaining an approach for

  1. running tests: from cd to cargo test,
  2. comparing and updating the goldenfiles, and
  3. adding a new test (doing the goldenfile update pattern I guess),

I am happy to call the test suite "started", close this issue, and hack whatever I need on top of the existing tests, as I need them.

from osm2streets.

BudgieInWA avatar BudgieInWA commented on June 5, 2024

@dabreegster, have you thought about [generating test from resource files using build scripts]? or test-generator?

It would be a nicer experience to have each test file be it's own test. Then slicing and dicing of tests, and locating the source of the failing test, and treating tests independently, etc. is all handled by the test runners. (My IDE is a testrunner too, with "rerun failed" and all sorts of different things).

from osm2streets.

dabreegster avatar dabreegster commented on June 5, 2024

A separate test per directory would be ideal, I didn't look into it yet. That crate looks like it could work nicely!

So my TODOs:

  • rename cfg.json -> test.json and output.json -> raw_map.geojson
  • docs
  • split tests

from osm2streets.

BudgieInWA avatar BudgieInWA commented on June 5, 2024

The very promising tests crate hits the nail on the head, testing multiple projects under the same roof.

from osm2streets.

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.