Git Product home page Git Product logo

Comments (10)

peterdrobec avatar peterdrobec commented on May 30, 2024 1

ahh, I just called /runs/index.html?loadLatest=true and it redirected me to the latest one so I thought this is in the latest release. I noticed that it redirects me to the latest run even if I call just /runs but that is probably just a luck. Isn't it?

from ghpr.core.

elv1s42 avatar elv1s42 commented on May 30, 2024

Hello @xcyroo !

If I understand you corrctly, you want to able to use single URL for loading the latest run from all test runs?
Somthing like https://youreserver/report/runs/latest/index.html ?

At the moment you are able to open latest run with one click using 'Latest' button:
image

from ghpr.core.

peterdrobec avatar peterdrobec commented on May 30, 2024

Hi,

yes I would appreciate a single URL which navigates me to the latest run.
Is it acceptable for you?

Peter

from ghpr.core.

elv1s42 avatar elv1s42 commented on May 30, 2024

@xcyroo I think it is possible to implement this feature like so:
https://youreserver/report/runs/index.html?loadLatest=true
and loadLatest parameter (when set to true) will force Ghpr to load the latest version.

Will this solution meet your requirements?

from ghpr.core.

peterdrobec avatar peterdrobec commented on May 30, 2024

Hi, that solution will definitely meet my requirement.
Thanks!
Peter

from ghpr.core.

peterdrobec avatar peterdrobec commented on May 30, 2024

Hi, loadLatest=true works well, you can close this one. Thanks!

from ghpr.core.

elv1s42 avatar elv1s42 commented on May 30, 2024

Hi @xcyroo !
I thought this one is not included in the latest release, did you build the new version from the source code?

from ghpr.core.

elv1s42 avatar elv1s42 commented on May 30, 2024

@xcyroo , that's my bad! I fogot that by default if you open runs page it will load the latest one (if there are no parameters inside URL).
So yeah, there is no need to implement this feature at all!

from ghpr.core.

elv1s42 avatar elv1s42 commented on May 30, 2024

Actually now there are to ways to open the latest test run page:

  1. Use special parameter inside URL (this way will be added in the next release): http://ghpreporter.github.io/report/runs/index.html?loadLatest=true
  2. Just use URL without any parameters: http://ghpreporter.github.io/report/runs/index.html

Both ways are working fine.

from ghpr.core.

elv1s42 avatar elv1s42 commented on May 30, 2024

Closing this one as implemented.
Works with Ghpr.Core 0.4.4+

from ghpr.core.

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.