Coder Social home page Coder Social logo

Add tests about toggl2redmine HOT 3 CLOSED

jigarius avatar jigarius commented on June 30, 2024
Add tests

from toggl2redmine.

Comments (3)

jigarius avatar jigarius commented on June 30, 2024

Configured automated test execution with Travis. Currently, there's only one placeholder test to check if 1 == 1 😅 I hope I can add some real tests soon.

from toggl2redmine.

jigarius avatar jigarius commented on June 30, 2024

Dev env setup

  • Set up docker-compose for easily building local dev envs
    • Probably, docker-compose can be used for the CI test env as well?
    • Next step: Cleanup and commit the docker-compose stuff into a .deploy directory
  • Created db/seeds.rb to create dummy data for dev envs
    • Simply, put the file in redmine/db/seeds.rb and run rake db:seed to import test data

from toggl2redmine.

jigarius avatar jigarius commented on June 30, 2024

Having worked with Redmine tests, I can say that I've seen it all as a developer 😓 .

  • UserCustomField for Toggl API Token gets deleted during tests for some reason?
  • Test routes added using Rails.application.routes.append in setup {} don't get recognized during the tests.
    • I created a test route in routes.rb and wrapped it in a if Rails.env == 'test'.

Now that the T2rBaseController is out of the way, the rest should be relatively simple.

from toggl2redmine.

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.