Giter VIP home page Giter VIP logo

Comments (6)

bilalshaikh42 avatar bilalshaikh42 commented on July 22, 2024

@gmarupilla Could you work on this as well? We need to get every test passing atleast for the unit tests. As we add more components it will get harder to manage so we should get this done before any further work

from biosimulations.

gmarupilla avatar gmarupilla commented on July 22, 2024

Yeah! Sure.

from biosimulations.

gmarupilla avatar gmarupilla commented on July 22, 2024

I looked into it. The problem with writing tests right now is that the requirement is not very concrete as of now. If i write tests right now, they'll have to be changed again once we start developing according to OAS file. What do you think?

from biosimulations.

bilalshaikh42 avatar bilalshaikh42 commented on July 22, 2024

We should definitely have the tests set up even though the spec is not finalized.

Firstly for unit tests, the majority of the test cases will not be dependent on the structure of objects but tests more basic features like ensuring that a list is properly populated or that the links and routing work. The ones that do rely on the objects Should fail if the spec changes so that we know that the front end needs updating.

Secondly, the e2e integration tests should not be dependent on the spec at all, but instead ensure that the site is working, regardless of what the api is sending out. Is a spec change breaks the e2e tests then that is a sign that the site needs to be adapted to the new spec, not that the tests must be changed.

from biosimulations.

bilalshaikh42 avatar bilalshaikh42 commented on July 22, 2024

@gmarupilla
All the tests have been fixed except for 2, the vega-viewer component and the file-edit component.
Both are giving an error about a parameter being null. For both components, the parameter is set using an HTTP Request.
We need to follow the below directions to mock the HTTPS request and give back a test parameter for the components to render.

https://blog.angulartraining.com/how-to-write-unit-tests-for-angular-code-that-uses-the-httpclient-429fa782eb15

from biosimulations.

bilalshaikh42 avatar bilalshaikh42 commented on July 22, 2024

fixed partially by #35
New issues opened for individual tests failing

from biosimulations.

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.