Giter VIP home page Giter VIP logo

Comments (8)

dorianmariecom avatar dorianmariecom commented on July 23, 2024 1

nice it works:

~/s/socializus> rspec spec/models/
Started RSpec tracer
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

RSpec tracer is running 28 examples (actual: 28, skipped: 0)
............................

Finished in 17.46 seconds (files took 9.94 seconds to load)
28 examples, 0 failures

RSpec tracer is generating reports
RSpec tracer reports generated to /Users/dorianmariefr/src/socializus/rspec_tracer_cache/1e61d938cb1b573af4d7a26d86b5ad18
RSpecTracer generated HTML report to /Users/dorianmariefr/src/socializus/rspec_tracer_report/index.html
Coverage report generated for RSpecTracer to /Users/dorianmariefr/src/socializus/rspec_tracer_coverage/coverage.json. 416 / 570 LOC (72.98%) covered
~/s/socializus> rspec spec/models/
Started RSpec tracer
RSpec tracer loaded cache from /Users/dorianmariefr/src/socializus/rspec_tracer_cache/1e61d938cb1b573af4d7a26d86b5ad18
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

RSpec tracer is running 0 examples (actual: 28, skipped: 28)


Finished in 0.23173 seconds (files took 8.73 seconds to load)
0 examples, 0 failures

RSpec tracer is generating reports
RSpec tracer reports generated to /Users/dorianmariefr/src/socializus/rspec_tracer_cache/1e61d938cb1b573af4d7a26d86b5ad18
RSpecTracer generated HTML report to /Users/dorianmariefr/src/socializus/rspec_tracer_report/index.html
Coverage report generated for RSpecTracer to /Users/dorianmariefr/src/socializus/rspec_tracer_coverage/coverage.json. 401 / 553 LOC (72.51%) covered

from rspec-tracer.

avmnu-sng avatar avmnu-sng commented on July 23, 2024

That's odd. https://github.com/avmnu-sng/rspec-tracer/blob/main/lib/rspec_tracer/source_file.rb#L10 returns false for the file path. Would it be possible for you to put a binding.pry here https://github.com/avmnu-sng/rspec-tracer/blob/main/lib/rspec_tracer/runner.rb#L110 and check the list?

from rspec-tracer.

dorianmariecom avatar dorianmariecom commented on July 23, 2024
> untraced_files
=> #<Set: {"/Users/dorianmariefr/src/socializus/spec/spec_helper.rb",
 "/Users/dorianmariefr/src/socializus/spec/rspec/instafail.rb"}>
> trace_point_files
=> #<Set: {"/Users/dorianmariefr/src/socializus/app/helpers/format_helper.rb"}>

from rspec-tracer.

avmnu-sng avatar avmnu-sng commented on July 23, 2024

Thanks, @dorianmariefr, which one of these two files doesn't exist? The trace_point_files should always be valid, so I guess, I am doing something wrong when generating RSpec required files.

from rspec-tracer.

dorianmariecom avatar dorianmariecom commented on July 23, 2024

right, "/Users/dorianmariefr/src/socializus/spec/rspec/instafail.rb" doesn't exist, instafail comes from the https://github.com/grosser/rspec-instafail gem

from rspec-tracer.

avmnu-sng avatar avmnu-sng commented on July 23, 2024

Got it. I assumed that the .rspec file --require will always exist in the project. I'll work on a fix.

from rspec-tracer.

avmnu-sng avatar avmnu-sng commented on July 23, 2024

@dorianmariefr Can you try it out using gem 'rspec-tracer', github: 'avmnu-sng/rspec-tracer' before I release?

from rspec-tracer.

avmnu-sng avatar avmnu-sng commented on July 23, 2024

@dorianmariefr v0.2.0 is released with the fix.

from rspec-tracer.

Related Issues (16)

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.